-
-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruby 3.1: Add specs for Time#new
in
keyword
#956
Ruby 3.1: Add specs for Time#new
in
keyword
#956
Conversation
Thank you, could you also add specs for |
8736649
to
6b1c28a
Compare
@@ -3,4 +3,49 @@ | |||
|
|||
describe "Time.now" do | |||
it_behaves_like :time_now, :now | |||
|
|||
describe ":in keyword argument" do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: I first thought those spec could be put into core/time/shared/now.rb
as shared examples. But the in
keyword behavior differs between Time.now
and Time.new
by Ruby version, so I just wrote these specs without ruby_version_is
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you!
Thank you too! |
Issue
Change
This pull request covers the spec below.
I used test cases for
Time.at
as a reference.